package org.mybaits.chapter4.entitys;

import java.util.Date;
import java.util.List;

/**
 * 订单信息
 * 
 * @author huangkai
 * @date 2016年2月28日 下午8:07:35
 * @version 1.0
 */
public class Orders {

	private Long id;

	private String orderCode;

	private Long userId;

	private String intro;

	private Date createtime;

	/**
	 * 订单与订单详细
	 */
	private List<OrderDetails> orderDetails;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public List<OrderDetails> getOrderDetails() {
		return orderDetails;
	}

	public void setOrderDetails(List<OrderDetails> orderDetails) {
		this.orderDetails = orderDetails;
	}

	@Override
	public String toString() {
		return "Orders [id=" + id + ", orderCode=" + orderCode + ", userId="
				+ userId + ", intro=" + intro + ", createtime=" + createtime
				+ ", orderDetails=" + orderDetails + "]";
	}

}
